package com.jumper.study.admin.dto.resp;

import java.time.LocalDateTime;
import java.time.ZoneOffset;

public class AccountResp {
    private Long id;

    private String username;

    private String name;

    private String avatar;

    private LocalDateTime updatedAt;

    public AccountResp() {
    }

    public AccountResp(Long id, String username, String name, String avatar, LocalDateTime updatedAt) {
        this.id = id;
        this.username = username;
        this.name = name;
        this.avatar = avatar;
        this.updatedAt = updatedAt;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAvatar() {
        return avatar;
    }

    public long getUpdatedAt() {
        return updatedAt.toEpochSecond(ZoneOffset.UTC);
    }

    public void setUpdatedAt(LocalDateTime updatedAt) {
        this.updatedAt = updatedAt;
    }
    
}
